package com.boot.app.file.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.boot.app.file.domain.FileAttach;
import org.springframework.web.multipart.MultipartFile;

import java.io.FileNotFoundException;
import java.io.IOException;

public interface IFileAttachService extends IService<FileAttach> {

    String getGroupPath(long id) throws FileNotFoundException;

    FileAttach saveAttachByGroupId(MultipartFile file, Long groupId) throws IOException;

    FileAttach removeAttachById(long id) throws FileNotFoundException;

}
